<?php
	$url = "/admin/index.php";
		
	if($_POST["username"] == "jack" && $_POST["password"] == "123") {
		echo "dd";
		header("Location:$url");
	}
?>

<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<body>
<form action="/login.php" method="post">
	<?php 
		echo dt; 
		echo JPATH_BASE; 
	
	?>
	登陆名:<input name="username"/>
	密码:<input name="password"/>
	<input type="submit" value="登陆"/>
</form>
</body>
</html>